<div><a href="{$base_url}&action=user_create" class="button add_item"><span>Добавить пользователя</span></a></div>
	<table class="list">
		<tr>
			<th class="_20">Доступ</th>
			<th class="_20">Ред.</th>
			<th class="_20">Ред. данные</th>
			<th>E-mail</th>
			<th>Логин</th>
			<th>Группа</th>
			<th>Дата регистрации</th>
			<th>Последнее посещение</th>
			<th class="_20">Удл.</th>
		</tr>
		{foreach $users as $user}
			<tr>
				<td class="center">
					{if $user->active == 1}
						<a href="{$base_url}&action=user_unactive&id={$user->id}"><img src="{$tpl_url}images/unlock.png" alt=""/></a>
					{else}
						<a href="{$base_url}&action=user_active&id={$user->id}"><img src="{$tpl_url}images/lock.png" alt=""/></a>
					{/if}
				</td>
				<td class="center">
					<a href="{$base_url}&action=user_edit&id={$user->id}"><img src="{$tpl_url}images/pencil.png" alt=""/></a>
				</td>
				<td class="center">
					<a href="{$base_url}&action=data_edit&id={$user->id}"><img src="{$tpl_url}images/pencil.png" alt=""/></a>
				</td>
				<td>
					{$user->email}
				</td>
				<td>
					{$user->login}
				</td>
				<td>
					{foreach $user->Groups as $group}
						<a href="{$base_url}&action=group_edit&id={$group->id}">{$group->title}</a>,
					{/foreach}
				</td>
				<td class="center">
					{date('d.m.Y H:i:s', $user->date_register)}
				</td>
				<td class="center">
					{date('d.m.Y H:i:s', $user->date_lastactive)}
				</td>
				<td class="center">
					<a onclick="if(confirm('Вы действительно желаете удалить этого пользователя?')) location.href = this.href; return false;" href="{$base_url}&action=user_delete&id={$user->id}"><img src="{$tpl_url}images/trash.png" alt=""/></a>
				</td>
			</tr>
		{/foreach}
	</table>